rm deploy/scripts/jquery.js;
cd deploy/scripts
echo "appending all files packed.js";
touch packed.tmp
cat jquery.accordion.js >> packed.tmp
cat jquery.template.js >> packed.tmp
cat pngcorners.js >> packed.tmp
cat default.js >> packed.tmp
cat speech.js >> packed.tmp
rm *.js
cd ../../

echo "Compressing JS to packed.js";

java -jar yuicompressor.jar -o deploy/scripts/packed.js --type js deploy/scripts/packed.tmp
rm deploy/scripts/packed.tmp

touch deploy/css/packed.tmp
cat deploy/css/corners.css >> deploy/css/packed.tmp
rm deploy/css/corners.css
cat deploy/css/structure.css >> deploy/css/packed.tmp
rm deploy/css/structure.css
echo "Compressing CSS to packed.css";
java -jar yuicompressor.jar -o deploy/css/packed.css --type css deploy/css/packed.tmp
rm deploy/css/packed.tmp